# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-text-vfile-asdata
pkgver=0.08
pkgrel=10
pkgdesc="Perl/CPAN Module Text::vFile::asData"
arch=("any")
url="https://search.cpan.org/dist/Text-vFile-asData"
license=("GPL" "PerlArtistic")
depends=("perl-class-accessor-chained")
source=("https://www.cpan.org/authors/id/R/RC/RCLAMP/Text-vFile-asData-$pkgver.tar.gz")
sha256sums=('b291ab5e0f987c5172560a692234711a75e4596d83475f72d01278369532f82a')

build() {
  cd "$srcdir"/Text-vFile-asData-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Text-vFile-asData-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
